{% extends '后台/layout.html' %}


{% load static %}

{% block title %}

{% endblock %}

{% block css %}

{% endblock %}

{% block content %}
<div class="card">
    <div class="card-body">
        <h5 class="card-title">编辑用户</h5>

        <!-- <div class="mb-3 row" style="margin:10px 0;">
            <label for="inputPassword" class="col-sm-2 col-form-label">用户账号</label>
            <div class="col-sm-10">
                <input type="text" class="form-control" id="inputText">
            </div>
        </div> -->
        <form method="post">
            {% csrf_token %}
            {% for obj in form %}
            <div class="mb-3 row" style="margin:10px 0;">
                <label for="inputPassword" class="col-sm-2 col-form-label">{{obj.label}}</label>
                <div class="col-sm-10">
                    <!-- <input type="text" class="form-control" id="inputText"> -->
                    {{obj}}
                    <small style="color: red;">{{obj.errors.0}}</small>
                </div>
            </div>
            {% endfor %}
    
            <div class="mb-3 row" style="margin:10px 0;">
                <label for="inputPassword" class="col-sm-2 col-form-label"></label>
                <div class="col-sm-10">
                    <!-- <input type="text" class="form-control" id="inputText"> -->
                    <button type="submit" class="btn btn-primary btn-lg">确定修改</button>
                </div>
            </div>
    
        </form>
        

    </div>
</div>
{% endblock %}

{% block js %}

{% endblock %}